/*
 * @Author: wb_wangjiudeng wb_wangjiudeng@tcl.com
 * @Date: 2025-05-30 18:26:08
 * @LastEditors: wb_wangjiudeng wb_wangjiudeng@tcl.com
 * @LastEditTime: 2025-05-30 19:02:21
 * @FilePath: \nsk-ui\src\api\records.js
 * @Description: 文件介绍
 * 
 * Copyright (c) 2025 by user.email, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询导入列表
export function getList(params) {
  return request({
    url: '/nsk/records/list',
    method: 'get',
    params
  })
}

// 新增导入
export function addData(data) {
  return request({
    url: '/nsk/records',
    method: 'post',
    data
  })
} 

// 修改导入
export function updateData(data) {
  return request({
    url: '/nsk/records',
    method: 'put',
    data
  })
} 

// 删除导入
export function deleteData(ids) {
  return request({
    url: `/nsk/records/${ids}`,
    method: 'delete'
  })
}

// 获取详细信息
export function getInfo(id) {
  return request({
    url: `/nsk/records/${id}`,
    method: 'get'
  })
}